import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.Rectangle;

import javax.swing.ImageIcon;


public class Bullet extends Entity
{

	public Bullet(int x, int y) {
		super(x, y);
	}

	public void update()
	{
		y -= 3;
	}
	
	public void draw(Graphics2D g2)
	{
		g2.drawImage(getBulletImg(), x, y, null);
		//g2.draw(getBounds());
	}
	
	public Image getBulletImg()
	{
		ImageIcon ic = new ImageIcon("Bullet.png");
		return ic.getImage();
	}
	
	public Rectangle getBounds()
	{
		return new Rectangle(x, y, getBulletImg().getWidth(null),getBulletImg().getHeight(null));
	}
}
